﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _01.School
{
    public class Class
    {
        private List<Theacher> theacherList = new List<Theacher>();
        private List<Student> studentList = new List<Student>();

        private string textId;

        //TODO check if it is unique or implement some random Id
        public Class(List<Theacher> theacherList, List<Student> studentList, string textId)
        {
            this.theacherList = new List<Theacher>(theacherList);
            this.studentList = new List<Student>(studentList);
            this.textId = textId;           
        }

        public List<Student> StudentList
        {
            get
            {
                return this.studentList;
            }
            set
            {
                this.studentList = value;
            }
        }

        public string TextId
        {
            get
            {
                return this.textId;
            }
            set
            {
                this.textId = value;
            }
        }

        public List<Theacher> TheacherList
        {
            get
            {
                return this.theacherList;
            }
            set
            {
                this.theacherList = value;
            }
        }

        public void AddStudent(Student newStudent)
        {
            studentList.Add(newStudent);
        }
    }
}